import request from '@/utils/request'

// 查询右侧检定表格
export function listCheck(query) {
    return request({
      url: '/resource/instrument/check/checkList',
      method: 'get',
      params: query
    })
  }

  export function listSelect(query) {
    return request({
      url: '/resource/instrument/check/selectList',
      method: 'get',
      params: query
    })
  }

// 查询右侧检定表单信息
export function formCheck(instrumentId) {
    return request({
      url: '/resource/instrument/' + instrumentId,
      method: 'get',
    })
  }

  export function insertCheck(instrumentId) {
    return request({
      url: '/resource/instrument/check/' + instrumentId,
      method: 'post'
    })
  }

  // 删除检定校准记录
export function delCheck(checkIds) {
    return request({
      url: '/resource/instrument/check/delete/' + checkIds,
      method: 'delete'
    })
  }

    // 删除检定校准记录
export function clearCheck() {
  return request({
    url: '/resource/instrument/check/deleteCurrentUser/',
    method: 'delete'
  })
}